﻿using System;
using System.Data;
using System.Collections.Generic;

namespace LDSP.BRL
{
    public partial class SMSSendLog : BYFW.BOL.BaseEntity
    {
        public SMSSendLog()
        {
            m_tableName = "t_SMSSendLog";
            m_hasComment = true;
            m_tblCacheManager.IsEnable = true;
        }

        protected int m_userID = 0;
        protected string m_phoneNumber = string.Empty;
        protected string m_content = string.Empty;
        protected DateTime m_sendDT = DateTime.MinValue;

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserID
        {
            get { return m_userID; }
            set { m_userID = value; }
        }
        /// <summary>
        /// 手机号
        /// </summary>
        public string PhoneNumber
        {
            get { return m_phoneNumber; }
            set { m_phoneNumber = value; }
        }
        /// <summary>
        /// 短信内容
        /// </summary>
        public string Content
        {
            get { return m_content; }
            set { m_content = value; }
        }
        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendDT
        {
            get { return m_sendDT; }
            set { m_sendDT = value; }
        }

        protected override void FillContainer()
        {
            base.FillContainer();
            m_container.Add("userID", m_userID);
            m_container.Add("phoneNumber", m_phoneNumber);
            m_container.Add("content", m_content);
            m_container.Add("sendDT", m_sendDT);
        }

        public override bool GetProperties(System.Data.DataRow record)
        {
            if (!base.GetProperties(record))
            {
                return false;
            }
            m_userID = this.GetIntValue(record, "userID");
            m_phoneNumber = this.GetStringValue(record, "phoneNumber");
            m_content = this.GetStringValue(record, "content");
            m_sendDT = this.GetDateValue(record, "sendDT");
            return true;
        }

    }
}